import request from '@/utils/request';

//话题列表
export function themeList(params){
  return request({
    url:'/theme/list',
    method:'get',
    params
  })
}
//新增话题
export function themeAdd(data){
  return request({
    url:'/theme/add',
    method:'post',
    data:data
  })
}
//编辑话题
export function themeEdit(data){
  return request({
    url:'/theme/edit',
    method:'put',
    data:data
  })
}
//删除话题
export function themeDel(data){
  return request({
    url:'/theme/del',
    method:'delete',
    data:data
  })
}
